/**
 * @description 用户登录鉴权请求接口
 * @author: JamesYao
 * @dateTime: 2023/12/18 01:32
 */
import request from '@/utils/base_request.ts'

// 登录接口
export function reqUserLogin(data:Object){
    return request({
        url:'/auth/login',
        method:'post',
        data
    })
}

// 获取用户信息
export function getUserInfo(){
    return request({
        url:'/user/info',
        method:'get'
    })
}

// 校验登录状态
export function doLogin(){
    return request({
        url:'/auth/doLogin',
        method:'get'
    })
}

// 退出登录
export function logout(){
    return request({
        url:'/auth/logout',
        method:'get'
    })
}
